.translation-editor {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}

.editor-header {
  background: white;
  padding: 20px;
  border-bottom: 1px solid #e8e8e8;
  z-index: 100;
  position: relative;
  margin-bottom: 20px;
}

.editor-header h1 {
  margin: 0 0 16px 0;
  font-size: 24px;
  color: #333;
}

.search-section {
  margin-bottom: 20px;
}

.filter-section {
  margin-bottom: 20px;
}

.work-range-info {
  margin-bottom: 20px;
  padding: 8px 12px;
  background-color: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: 4px;
}

.work-range-info .ant-typography {
  margin-left: 8px;
}

.status-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.count-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.scroll-indicators {
  display: flex;
  gap: 16px;
  align-items: center;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #666;
  font-size: 12px;
}

.scroll-indicator.up {
  color: #1890ff;
}

.scroll-indicator.down {
  color: #52c41a;
}

.translation-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-top: 0;
}

.translation-item {
  margin-bottom: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.translation-item.modified {
  border: 2px solid #1890ff;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
}

.translation-item.locked {
  position: relative;
  background-color: #f5f5f5;
}

.translation-item.locked::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 10;
  cursor: not-allowed;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.locked-indicator {
  font-style: italic;
}

.item-content {
  display: flex;
  gap: 16px;
  align-items: start;
  width: 100%;
}

.chinese-text {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 6px;
  border-left: 4px solid #1890ff;
}

.english-input {
  flex: 1;
}

.save-button {
  display: flex;
  align-items: center;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.loading-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .item-content {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .status-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .scroll-indicators {
    flex-wrap: wrap;
  }
} 